package com.stox.dto.web;

import java.util.ArrayList;
import java.util.List;

public class Response<T>{

	private T payload;
	
	private boolean success = true;
	
	private final List<Message> messages = new ArrayList<Message>();
	
	public Response() {
		
	}
	
	public Response(T payload) {
		this.payload = payload;
	}
	
	public List<Message> getMessages() {
		return messages;
	}
	
	public T getPayload() {
		return payload;
	}
	
	public void setPayload(T payload) {
		this.payload = payload;
	}
	
	public boolean isSuccess() {
		return success;
	}
	
	public void setSuccess(boolean success) {
		this.success = success;
	}

}
